# -*- coding: utf-8 -*-

#-----------------------------------------------------------------------------
# 库文件
#-----------------------------------------------------------------------------
import argparse

#-----------------------------------------------------------------------------
# 变量声明
#-----------------------------------------------------------------------------
parse = argparse.ArgumentParser()

# 在此处定义需要的参数
parse.add_argument('--log_name', '-ln', required=False, help="(Optional)customized log file name")
parse.add_argument('--log_path', '-lp', required=False, help="(Optional)customized log file path")
parse.add_argument('--port', '-p', required=False, help="(Optional)customized port number")
parse.add_argument('--baudrate', '-b', required=False, type=int, help="(Optional)customized baudrate")
parse.add_argument('--x_axis_length', '-xl', required=False, type=int, help="(Optional)customized x axis lenth in QT GUI")
parse.add_argument('--update_freq', '-uf', required=False, type=int, help="(Optional)customized update frequence of QT GUI")
parse.add_argument('--column', '-cl', required=False, type=int, help="(Optional)customized data column which will be read in the log file")
parse.add_argument('--row', '-r', required=False, type=int, help="(Optional)customized data row to skip")
parse.add_argument('--multi_plot_en', '-mpe', required=False, action="store_true", help="(Optional)enable multiple plot in QT GUI")
parse.add_argument('--multi_curve_en', '-mce', required=False, action="store_true", help="(Optional)enable multiple curve in QT GUI")
parse.add_argument('--delimiter', '-d', required=False, help="(Optional)change delimiter for .csv file")
parse.add_argument('--sum_en', '-se', required=False, action="store_true", help="(Optional)enable summation arithmatic operation")


# 此处会解析参数
args = parse.parse_args()

# 使用方法
# 在需要被使用的地方加一句 from parse_definition import args 即可
